package day13.practice.test;


import static java.lang.Math.*;

/**
 * @Author juzipi
 * @Date 2021/6/29 11:06
 * @Info
 */
public class Circle extends GeometricObject {

    protected double radius;

    public Circle(String color, double weight, double radius) {
        super(color, weight);
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }


    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getArea(){
        return PI * radius * radius;
    }

}
